package com.redis.data.seckillshopping.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author 哲思小辉
 * @version 1.0.0
 * @ClassName Goods.java
 * @Description 商品实体
 * @Param
 * @createTime 2020年03月25日 20:35:00
 */
@Setter
@Getter
@ApiModel(value = "Goods", description = "商品对象")
public class Goods extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 424005379295225926L;
    /**
     * 商品名称
     */
    @ApiModelProperty(name = "name", value = "商品名称", example = "游戏手机")
    private String name;
    /**
     * 数量
     */
    @ApiModelProperty(name = "totalAmount", value = "数量", example = "2000")
    private Integer totalAmount;
    /**
     * 单价
     */
    @ApiModelProperty(name = "unitPrice", value = "单价", example = "2999")
    private Double unitPrice;
    /**
     * 打折
     */
    @ApiModelProperty(name = "discount", value = "打折", example = "0.8")
    private Float discount;
    /**
     * 商品状态：0已下架，1未开始，2正常
     */
    @ApiModelProperty(name = "goodsStatus", value = "商品状态：0已下架，1未开始，2正常", example = "1")
    private Integer goodsStatus;
    /**
     * 促销数量
     */
    @ApiModelProperty(name = "promotionAmount", value = "促销数量", example = "100")
    private Integer promotionAmount;
    /**
     * 促销单价
     */
    @ApiModelProperty(name = "promotionUnitPrice", value = "促销单价", example = "2500")
    private Double promotionUnitPrice;

}